package com.fa.common.warehouse;

import com.fa.common.xss.XssValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(value = { ElementType.METHOD, ElementType.FIELD })
@Constraint(validatedBy = { WarehouseCodeCheckValidator.class })
public @interface WarehouseCodeCheck {
    String message() default "仓库编码格式错误";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
